/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package questionaire;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.ServletActionContext;
import java.util.*;

/**
 *
 * @author balbir kaur
 */
public class twitterStatusAction extends ActionSupport{
    public String twitterMessage;
    public String percentage;
    public String message;
   
    @Override
    public String execute(){
     this.setTweetStartAndEnd();
     return SUCCESS;
    }
    public void setMessage(String message){
        this.message=message;
        
    }

    public String getMessage(String message ){
    return this.message;
    }
    
   public void setTweetStartAndEnd(){
QuestionsRead r=new QuestionsRead();
Map m=ServletActionContext.getContext().getApplication();
m.put("tweetstart",r.getTweetStart());
m.put("tweetend",r.getTweetEnd());
   }


}
